package Medarbejdere;

public class Employee { 

//Instance variables
private String name = "N/A";
private double salary = 0;

//Constructors
public Employee(){
	this("Employee not name", 0);
}
public Employee(String employeeName){
	this(employeeName, 0);
}
public Employee(String employeeName, double currentSalary){
	name=employeeName;
	salary=currentSalary;
}

//Methods
/**
 * Show employee name.
 * @return string containing employee name.
 */
public String getName(){
	return name;
}

/**
 * Show employee salary.
 * @return double containing employee salary.
 */
public double getSalary(){
	return salary;
}
/**
 * Raise employee salary by a given percentage.
 * @param byPercent double expressing the salary raise as a percentage. I.e. 5.25.
 */
public void raiseSalary(double byPercent){
	salary = salary*((100+byPercent)/100);
}


}
